package com.example.drug.util;

public class BizException extends RuntimeException{
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private int code = 500;
    private String msg;

    public BizException(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public BizException(String msg) {
        this.msg = msg;
    }
}
